package solo;

/**
 * @author tongchen
 * @create 2023-06-20 21:35
 */
public class HungryMan {
    //饿汉式单例对象的实现
    //在类中创建实例对象
    private static HungryMan hungryMan=new HungryMan();
    //私有化构造方法
    private HungryMan(){

    }
    //对外提供构造接口
    public static HungryMan getHungryMan(){
        return hungryMan;
    }
}
